import os

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()

requires = ['pyramid',
            'pyramid_zcml',
            'WebError',
            'storm',
            'repoze.tm2>=1.0b1', # default_commit_veto
            'repoze.zodbconn',
            'repoze.retry',
            'ZODB3',
            'colander',
            'deform',
            'lxml',
            'repoze.who==1.0.18',
            ]

tests_require = ['pyramid',
                 'pyramid_zcml',
                 ]

setup(name='ampersands.core',
      version='0.1',
      description='ampersands',
      long_description=README + '\n\n' + CHANGES,
      classifiers=[
        "Programming Language :: Python",
        "Framework :: Pylons",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        ],
      author='Russell Sim',
      author_email='russell.sim@monash.edu',
      url='',
      keywords='web pyramid pylons',
      packages=find_packages(),
      namespace_packages=['ampersands'],
      include_package_data=True,
      zip_safe=False,
      install_requires=requires,
      tests_require=requires,
      extras_require=dict(tests=tests_require),
      test_suite="ampersands.core",
      entry_points="""\
      [paste.app_factory]
      main = ampersands.core:main
      """,
      paster_plugins=['pyramid'],
      )
